import sys
sys.path.append(r'D:\yzc\Dropbox\private\proj\cuda-convnet-read-only');
from util import *

batch_meta_fn=r'D:\yzc\data\imagenet\12_challenge\data_batch_sz256\batches.meta';

batch_meta = unpickle(batch_meta_fn)

print batch_meta['label_names'][0:10]
print len(batch_meta['label_names'])
print batch_meta['num_vis']

new_batch_meta={}
new_batch_meta['data_mean']=batch_meta['data_mean']
new_batch_meta['label_names']=batch_meta['label_names'][0:1000]
new_batch_meta['num_vis']=batch_meta['num_vis']
pickle(batch_meta_fn,new_batch_meta)